package cn.stylefeng.guns.modular.file.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 文件实体管理
 * </p>
 *
 * @author rebiekong
 * @since 2019-10-20
 */
@TableName("file_entity")
public class FileEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID字段
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 文件ID
     */
    @TableField("file_id")
    private Long fileId;

    /**
     * 文件储存路径
     */
    @TableField("file_path")
    private String filePath;

    /**
     * 文件版本
     */
    @TableField("version")
    private Integer version;

    /**
     * 文件大小
     */
    @TableField("file_size")
    private Long fileSize;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    @Override
    public String toString() {
        return "FileEntity{" +
        "id=" + id +
        ", fileId=" + fileId +
        ", filePath=" + filePath +
        ", version=" + version +
        ", fileSize=" + fileSize +
        "}";
    }
}
